package SmartMeeting.decorators;


import SmartMeeting.Entity.Meeting;

public class ConcreteMeetingRecord implements MeetingRecord {
    private String content;

    @Override
    public void record(Meeting meeting) {
        System.out.println("会议ID: " + meeting.getId());
        content = "会议议程: " + meeting.getAgent() + "\n" +
                "会议时间: " + meeting.getTime() + "\n" +
                "会议地点: " + meeting.getPlace() + "\n" +
                "会议参与者: " + String.join(", ", meeting.getParticipants());
    }

    @Override
    public String getContent() {
        return content;
    }
}
